export default class ON_BLOCK{

        // 地图块附属渲染物


    static EVENTHANDLER(runtime){

        this.RENDERINGMODE_.EVENTHANDLER(runtime)


    }


    static INIT_EVENTHANDLER(runtime){


    }



    static RENDERINGMODE_={

        EVENTHANDLER(runtime)

        {
                ON_BLOCK.RENDERINGMODE_.opacityRendingmode(runtime)
        },



        // 可视渲染
        opacityRendingmode(runtime)

        {


            for(let f_onblock of runtime.objects.f_onblock.instances())
            {
                for(let f_block of runtime.objects.f_block.instances())
                {
                    if (f_block.testOverlap(f_onblock))
                    {
                        f_onblock.opacity=f_block.opacity

                    }
                }
            }

        }



    }



}